package com.Ritany3.auth.common.enums;


import lombok.Getter;

/**
 * 删除状态枚举
 */
@Getter
public enum AuthUserStatusEnum {
    OPEN(0,"已启用"),
    CLOSE(1,"已禁用");
    public int code;
    public String desc;

    AuthUserStatusEnum(int code , String desc){
        this.code=code;
        this.desc=desc;
    }

    public static AuthUserStatusEnum getByCode(int codeVal){
        for(AuthUserStatusEnum resultCodeEnum : AuthUserStatusEnum.values()){
            if(resultCodeEnum.code == codeVal){
                return resultCodeEnum;
            }
        }
        return null;
    }

}
